import requests

url = 'https://www.baidu.com/'
re = requests.get(url)
print('状态码为：',re.status_code)
print('响应头为：',re.headers)
print('响应体为：',re.text)
print('响应时间为：',re.elapsed.total_seconds())